package com.imooc.springbootdemo.mapper;

import com.imooc.springbootdemo.entity.Area;

import java.util.List;

/**
 * Created by jiangfeixiang on 2018/4/8
 */
public interface AreaMapper {
    /**
     * 列出地域列表
     *
     * @param
     * @return
     */
    List<Area> getArea();
    /**
     * 根据id查询
     */
    Area getAreaById(Integer areaId);

    /**
     *
     * @param area
     * @return
     */
    int insertArea(Area area);

    /**
     *
     * @param area
     * @return
     */
    int updateArea(Area area);

    /**
     *
     * @param areaId
     * @return
     */
    int deleteArea(int areaId);
}
